package com.xsr.mapper;

import com.xsr.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author 邢式瑞
 * @version 1.0
 * @project gp14Sm
 * @date 2022/9/6 16:44
 */
public interface UserMapper {
    List<User> SelectAll();
   @Delete("delete from user where uid=#{id}")
    void deleteById(Integer id);
 @Insert("insert into user values(null,#{username},#{password},#{status})")
    void insert(User user);
   @Update("update user set username=#{username},password=#{password} where uid=#{uid}")
    void update(User user);
}
